package com.example.demo

import com.example.demo.data.Taco
import com.example.demo.data.repository.TacoRepository
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import java.sql.Date

@SpringBootTest
class JpaDateTest {

    @Autowired
    lateinit var tacoRepository: TacoRepository

    @Test
    fun saveTest() {
        tacoRepository.save(Taco(id = 2, createdAt = Date(System.currentTimeMillis()), name = "一点都不好吃",ingredients = listOf("张三撒", "李四", "王二麻子")))
    }

}